  /**
   * Generate time : 2013-06-26 9:26:38
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBPlanDays 
 * table comment : 计划工作日 
 */
public class ZMCBPlanDays extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdType = " ";		/* 计划类型*/
	private String fdItem = " ";		/* 项目*/
	private String fdYear = " ";		/* 年份*/
	private String fdJan = " ";		/* 1月*/
	private String fdFeb = " ";		/* 2月*/
	private String fdMar = " ";		/* 3月*/
	private String fdApr = " ";		/* 4月*/
	private String fdMay = " ";		/* 5月*/
	private String fdJun = " ";		/* 6月*/
	private String fdJul = " ";		/* 7月*/
	private String fdAug = " ";		/* 8月*/
	private String fdSep = " ";		/* 9月*/
	private String fdOct = " ";		/* 10月*/
	private String fdNov = " ";		/* 11月*/
	private String fdDec = " ";		/* 12月*/
	private Long fdTotal = new Long(0);	/* 全年合计*/
	private String fdUnit = " ";		/* 合计单位*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("计划类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdItem");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("项目");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJan");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("1月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFeb");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("2月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMar");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("3月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdApr");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("4月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMay");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("5月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJun");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("6月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJul");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("7月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAug");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("8月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSep");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("9月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOct");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("10月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNov");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("11月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDec");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("12月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("全年合计");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUnit");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("合计单位");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBPlanDays() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdType - 计划类型
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 计划类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdItem - 项目
	 * @return the fdItem
	 */
	public String getFdItem() {
		return this.fdItem;
	}
	
	/**
	 * set the fdItem - 项目
	 */
	public void setFdItem(String fdItem) {
		this.fdItem = fdItem;
	}
	
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdJan - 1月
	 * @return the fdJan
	 */
	public String getFdJan() {
		return this.fdJan;
	}
	
	/**
	 * set the fdJan - 1月
	 */
	public void setFdJan(String fdJan) {
		this.fdJan = fdJan;
	}
	
	/**
	 * get the fdFeb - 2月
	 * @return the fdFeb
	 */
	public String getFdFeb() {
		return this.fdFeb;
	}
	
	/**
	 * set the fdFeb - 2月
	 */
	public void setFdFeb(String fdFeb) {
		this.fdFeb = fdFeb;
	}
	
	/**
	 * get the fdMar - 3月
	 * @return the fdMar
	 */
	public String getFdMar() {
		return this.fdMar;
	}
	
	/**
	 * set the fdMar - 3月
	 */
	public void setFdMar(String fdMar) {
		this.fdMar = fdMar;
	}
	
	/**
	 * get the fdApr - 4月
	 * @return the fdApr
	 */
	public String getFdApr() {
		return this.fdApr;
	}
	
	/**
	 * set the fdApr - 4月
	 */
	public void setFdApr(String fdApr) {
		this.fdApr = fdApr;
	}
	
	/**
	 * get the fdMay - 5月
	 * @return the fdMay
	 */
	public String getFdMay() {
		return this.fdMay;
	}
	
	/**
	 * set the fdMay - 5月
	 */
	public void setFdMay(String fdMay) {
		this.fdMay = fdMay;
	}
	
	/**
	 * get the fdJun - 6月
	 * @return the fdJun
	 */
	public String getFdJun() {
		return this.fdJun;
	}
	
	/**
	 * set the fdJun - 6月
	 */
	public void setFdJun(String fdJun) {
		this.fdJun = fdJun;
	}
	
	/**
	 * get the fdJul - 7月
	 * @return the fdJul
	 */
	public String getFdJul() {
		return this.fdJul;
	}
	
	/**
	 * set the fdJul - 7月
	 */
	public void setFdJul(String fdJul) {
		this.fdJul = fdJul;
	}
	
	/**
	 * get the fdAug - 8月
	 * @return the fdAug
	 */
	public String getFdAug() {
		return this.fdAug;
	}
	
	/**
	 * set the fdAug - 8月
	 */
	public void setFdAug(String fdAug) {
		this.fdAug = fdAug;
	}
	
	/**
	 * get the fdSep - 9月
	 * @return the fdSep
	 */
	public String getFdSep() {
		return this.fdSep;
	}
	
	/**
	 * set the fdSep - 9月
	 */
	public void setFdSep(String fdSep) {
		this.fdSep = fdSep;
	}
	
	/**
	 * get the fdOct - 10月
	 * @return the fdOct
	 */
	public String getFdOct() {
		return this.fdOct;
	}
	
	/**
	 * set the fdOct - 10月
	 */
	public void setFdOct(String fdOct) {
		this.fdOct = fdOct;
	}
	
	/**
	 * get the fdNov - 11月
	 * @return the fdNov
	 */
	public String getFdNov() {
		return this.fdNov;
	}
	
	/**
	 * set the fdNov - 11月
	 */
	public void setFdNov(String fdNov) {
		this.fdNov = fdNov;
	}
	
	/**
	 * get the fdDec - 12月
	 * @return the fdDec
	 */
	public String getFdDec() {
		return this.fdDec;
	}
	
	/**
	 * set the fdDec - 12月
	 */
	public void setFdDec(String fdDec) {
		this.fdDec = fdDec;
	}
	
	/**
	 * get the fdTotal - 全年合计
	 * @return the fdTotal
	 */
	public Long getFdTotal() {
		return this.fdTotal;
	}
	
	/**
	 * set the fdTotal - 全年合计
	 */
	public void setFdTotal(Long fdTotal) {
		this.fdTotal = fdTotal;
	}
	
	/**
	 * get the fdUnit - 合计单位
	 * @return the fdUnit
	 */
	public String getFdUnit() {
		return this.fdUnit;
	}
	
	/**
	 * set the fdUnit - 合计单位
	 */
	public void setFdUnit(String fdUnit) {
		this.fdUnit = fdUnit;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdItem(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItem")), fdItem));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdJan(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdJan")), fdJan));
		setFdFeb(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeb")), fdFeb));
		setFdMar(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMar")), fdMar));
		setFdApr(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApr")), fdApr));
		setFdMay(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMay")), fdMay));
		setFdJun(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdJun")), fdJun));
		setFdJul(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdJul")), fdJul));
		setFdAug(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAug")), fdAug));
		setFdSep(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSep")), fdSep));
		setFdOct(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOct")), fdOct));
		setFdNov(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNov")), fdNov));
		setFdDec(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDec")), fdDec));
		setFdTotal(NumberUtils.toLong(StringUtils.toString(map.get("fdTotal")), fdTotal));
		setFdUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUnit")), fdUnit));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdItem",StringUtils.toString(fdItem, eiMetadata.getMeta("fdItem")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdJan",StringUtils.toString(fdJan, eiMetadata.getMeta("fdJan")));	
			map.put("fdFeb",StringUtils.toString(fdFeb, eiMetadata.getMeta("fdFeb")));	
			map.put("fdMar",StringUtils.toString(fdMar, eiMetadata.getMeta("fdMar")));	
			map.put("fdApr",StringUtils.toString(fdApr, eiMetadata.getMeta("fdApr")));	
			map.put("fdMay",StringUtils.toString(fdMay, eiMetadata.getMeta("fdMay")));	
			map.put("fdJun",StringUtils.toString(fdJun, eiMetadata.getMeta("fdJun")));	
			map.put("fdJul",StringUtils.toString(fdJul, eiMetadata.getMeta("fdJul")));	
			map.put("fdAug",StringUtils.toString(fdAug, eiMetadata.getMeta("fdAug")));	
			map.put("fdSep",StringUtils.toString(fdSep, eiMetadata.getMeta("fdSep")));	
			map.put("fdOct",StringUtils.toString(fdOct, eiMetadata.getMeta("fdOct")));	
			map.put("fdNov",StringUtils.toString(fdNov, eiMetadata.getMeta("fdNov")));	
			map.put("fdDec",StringUtils.toString(fdDec, eiMetadata.getMeta("fdDec")));	
			map.put("fdTotal",StringUtils.toString(fdTotal, eiMetadata.getMeta("fdTotal")));	
			map.put("fdUnit",StringUtils.toString(fdUnit, eiMetadata.getMeta("fdUnit")));	
			
		return map;
	
	}
}